public class Array {
    public static void main(String[] args) {

        String[] strings = new String[3];

        strings[0] ="数据1";
        strings[1] ="数据2";
        strings[2] ="数据3";

        System.out.println(strings[0]);
        System.out.println(strings[1]);
        System.out.println(strings[2]);
        System.out.println(strings[3]);
        System.out.println(strings[4]);
        for (int i =0;i<strings.length;i++){

            System.out.println(strings[i]);
        }

    }
}
